/**
 * Copyright UOB Ltd. All rights reserved. (2011)
 *
 * This software is the confidential and proprietary information
 * of United Overseas Bank Ltd. ("Confidential Information"). 
 * You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the contract
 * agreement you entered into with UOB.
 * 
 * File Name  : BaseRowMapper.java
 * Created By : Adelwin Handoyo
 * Created At : Apr 12, 2011 1:35:40 PM
 *
 * Change History
 * Author Name     Date        Details
 * =============== =========== =================================
 * Adelwin Handoyo Apr 12, 2011 Initial Draft
 */
package com.uobgroup.cmt.base.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.apache.log4j.Logger;
import org.springframework.jdbc.core.BeanPropertyRowMapper;

public class BaseRowMapper<M> extends BeanPropertyRowMapper<M> {
	protected static Logger logger = Logger.getLogger(BaseRowMapper.class);

	public BaseRowMapper() {
		super();
	}

	public BaseRowMapper(Class<M> mappedClass) {
		super(mappedClass);
	}

	public M mapRow(ResultSet rs) throws SQLException {
		return this.mapRow(rs, 1);
	}
	
}
